@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background-image: url(Rymden.jpg);
  background-repeat: auto;
  height: 100%;
  line-height: 1.5rem;
}

body {
  display:flex;
  flex-direction: column;
  margin-top: 0;
  margin: 0;
  padding: 0;
  color: white;
  border-radius: 0; 
  min-height: 100vh;
  width: 100%;
}

header {
  border-bottom: solid rgb(62, 58, 82) 2px;
  text-align: center;
  color: white;
  background-image: radial-gradient(rgb(5, 0, 17), rgba(37, 33, 51, 0));
  background-image: linear-gradient(to top, rgba(65, 64, 105, 0.473) 2%, rgba(65, 64, 105, 0) );
  margin-top: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-family:"Comfortaa", sans-serif;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mail a {
  color: white;
  text-decoration: none;
}

.mail a:hover {
  color: yellow;
}

ul,li {
  list-style-type: none;
  list-style-position: inside;
}
@media (max-width: 900px) {
  .container {
    display: flex;
    flex-direction: column;
    background-color:rgb(18, 13, 28);
    width: 100%;
    flex: 1;
  }
  section {
    padding: 20px;
    text-align: center;
    font-family:"Comfortaa", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background-color:rgb(18, 13, 28);
  }
  
  .knapp_mobile a {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    font-family:"Comfortaa", sans-serif;
    font-size: 15px;
    text-align:center;
    text-decoration: none;
    color: white;
    line-height: 1.6;
    background-color:rgb(18, 13, 28);
    border-radius: 10px;
    border-style: solid;
    border-color: rgb(62, 58, 82);
    border-width: 3px;
  }

  .knapp_mobile a:hover {
    background-color: rgb(62, 58, 82);
    color: white;
  }
  .knapp {
    display: none;
  }

  footer {
    margin: 0;
    padding: 30px;
    font-family:"Comfortaa", sans-serif;
    border-top: solid rgb(62, 58, 82) 1px;
    font-size: 15px;
    line-height: 1.6;
    background-color:rgb(18, 13, 28);
    border-radius: 0;
    bottom: 0;
    width: 100%;
  }
}

@media (min-width: 901px) {
  
  .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color:rgb(18, 13, 28);
    width: 100%;
  }

  section {
    margin: 50px;
    padding: 30px;
    font-family:"Comfortaa", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    background-color:rgb(18, 13, 28);
    border-radius: 0;
  }

  .knapp{
    grid-column: 1 / -1;   /* fyller båda kolumner */
    display: flex;
    justify-content: center;   /* centrerar horisontellt */
    align-items: center;       /* centrerar vertikalt */
    height: 65%;
  }

  .knapp a{
    display: block;
    width: 100%;
    padding: 30px;
    font-family:"Comfortaa", sans-serif;
    font-size: 18px;
    text-align:center;
    text-decoration: none;
    color: white;
    line-height: 1.6;
    background-color:rgb(18, 13, 28);
    border-radius: 10px;
    border-style: solid;
    border-color: rgb(62, 58, 82);
    border-width: 3px;

  }

  .knapp a:hover {
    background-color: rgb(62, 58, 82);
    color: white;
  }

  .knapp_mobile {
    display: none;
  }

  footer {
    margin: 0;
    padding: 30px;
    font-family:"Comfortaa", sans-serif;
    border-top: solid rgb(62, 58, 82) 1px;
    font-size: 18px;
    line-height: 1.6;
    background-color:rgb(18, 13, 28);
    border-radius: 0;
    bottom: 0;
    width: 100%;
  }
}